//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_respawn_markers.sqf"
#include "xr_macros.sqf"

private ["_newm", "_xrm"];
GVARXR(respavailablemarker) = true;
GVARXR(respmarkerar) = [];
GVARXR(respmarkerar2) = [];
{
	if (str(markerPos _x) != "[0,0,0]") then {
		_newm = createMarkerLocal [_x + "_xrm", markerPos _x];
		_newm setMarkerShapeLocal "ICON";
		_newm setMarkerTypeLocal "selector_selectedMission";
		_newm setMarkerColorLocal "ColorGreen";
		_newm setMarkerDirLocal 20;
		GVARXR(respmarkerar) set [count GVARXR(respmarkerar), [_x, _newm, 0.015, ""]];
		
		_newm = createMarkerLocal [_x + "_xrm2", markerPos _x];
		_newm setMarkerShapeLocal "ICON";
		_newm setMarkerTypeLocal "Select";
		_newm setMarkerColorLocal "ColorYellow";
		_newm setMarkerDirLocal 20;
		GVARXR(respmarkerar2) set [count GVARXR(respmarkerar2), [_x, _newm]];
	};
} forEach GVARXR(respawn_markers);